// 图表的分类及其专属的options
const exclusiveList = [
    {
        label: '柱状图',
        name: 'bar',
        type: '直角坐标系',
        getLegend() {
            let { series } = this.defaultOptions;
            return series.map(item => item.name)
        },
        defaultOptions: {
            title: {
                show: true,
                text: '基础柱状图'
            },
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    data: [120, 200, 150, 80, 70, 110, 130],
                    name: 'No.1',
                    type: 'bar'
                },
                {
                    data: [120, 200, 150, 80, 70, 110, 130],
                    name: 'No.2',
                    type: 'bar'
                },
            ]
        }
    },
    {
        label: '折线图',
        name: 'line',
        type: '直角坐标系',
        defaultOptions: {
            title: {
                show: true,
                text: '基础折线图'
            },
            xAxis: {
                type: 'category',
                data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
            },
            yAxis: {
                type: 'value'
            },
            series: [
                {
                    data: [150, 230, 224, 218, 135, 147, 260],
                    type: 'line',
                    name: 'No.1',
                },
                {
                    data: [10, 230, 24, 218, 15, 17, 260],
                    type: 'line',
                    name: 'No.2',
                }
            ]
        }
    }
]
// 共有的list
const commonList = []
// 主要的list
const majorList = []



export { exclusiveList, commonList, majorList }